package com.qcq.springcloud.controller;

import com.qcq.springcloud.config.RedisProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：qcq
 * @date ：Created in 2020/11/29 20:31
 * @description：
 */

@RestController
@RequestMapping("hello")
public class HelloController {
    @Autowired
    private RedisProperties properties;

    @GetMapping("prop")
    public RedisProperties getProperties(){
        return properties;
    }

}
